//written by Jonathan Odom
#ifndef EVENTPROCESSOR_H_
#define EVENTPROCESSOR_H_
#include <cctype>
#include "Event.h"
#include "HTMLOutputter.h"
#include "Comparator.h"
#include "Filter.h"
#include <algorithm>
using namespace std;

class EventProcessor
{
public:
	EventProcessor();
	//construct a new processor or add new events
	EventProcessor(const vector<Event*>& newEvents);
	
	//merges the vectors
	void add(const vector<Event*>& newEvents);
	
	// sorts then
	// creates all tables and css
	void generateHTML(HTMLOutputter& out);
	
	
	
private:
	//No duplicate events
	vector<Event*> myEvents;
	void removeDuplicates();
	void purgeOutputFolder();
	const string outputDir;
	const string usedOutputDir;
};

#endif /*EVENTPROCESSOR_H_*/
